class Person:
    def __init__(self, name, age):
        self.age = age
        self.name = name

    def info(self):
        print(self.name, self.age)


class Student(Person):
    def __init__(self, name, age, score):
        super().__init__(name, age)
        # self.set_age(age)
        self.score = score

    def info(self):
        print(self.name, self.age, self.score)
    # def set_age(self, age):
    #     if 0 <= age <= 120:
    #         self.__age = age
    #     else:
    #         self.__age = 18

    # def get_age(self):
    #     return self.__age


if __name__ == "__main__":
    stu1 = Student("欧文", 20, 50)
    stu1.info()
